import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    component: () => import("../layout/layout.vue"),
    children: [
      {
        path: "index",
        component: () => import("../views/index/index.vue"),
      },
      {
        path: "user",
        component: () => import("../views/user/index.vue"),
      },
      
    ],
  },
  {
    path: "/login",
    component: () => import("../views/login/index.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
